{% extends "v1/base.html" %}
{% block content %}
  <div id="export" class="export">
  <a href="http://172.16.3.119:9999/static/xlsx/orderDetail.xlsx" ><span>导出数据</span></a>
  </div>
  
<div id="year" class="data"></div>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById("year")); 
    var dateStr = "{{ item['mq']['y'] }}";
    var xAxisList = dateStr.split(';');
    option = {
        title: {
            text: '面签',
            subtext: '累计产出'
        },
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        legend: {
            data: ['面签']
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis: {
            type: 'value',
            boundaryGap: [0, 0.01]
        },
        yAxis: {
            type: 'category',
            data: xAxisList
        },
        series: [
            {
                name: '面签',
                type: 'bar',
                itemStyle:{
                    color:'gray' 
                },  
                data: {{ item['mq']['x'] }}
            }
        ]
    };
    // 使用刚指定的配置项和数据显示图表。  
    myChart.setOption(option); 
</script>


<div id="month" class="data"></div>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById("month")); 
    var dateStr = "{{ item['cs']['y'] }}";
    var xAxisList = dateStr.split(';');
    option = {
        title: {
            text: '初审',
            subtext: '累计产出'
        },
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        legend: {
            data: ['初审']
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis: {
            type: 'value',
            boundaryGap: [0, 0.01]
        },
        yAxis: {
            type: 'category',
            data: xAxisList
        },
        series: [
            {
                name: '初审',
                type: 'bar',
                itemStyle:{
                    color:'gray' 
                },  
                data: {{ item['cs']['x'] }}
            }
        ]
    };
    // 使用刚指定的配置项和数据显示图表。  
    myChart.setOption(option); 
</script>


<div id="week" class="data"></div>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById("week")); 
    var dateStr = "{{ item['zs']['y'] }}";
    var xAxisList = dateStr.split(';');
    option = {
        title: {
            text: '终审',
            subtext: '累计产出'
        },
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        legend: {
            data: ['终审']
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis: {
            type: 'value',
            boundaryGap: [0, 0.01]
        },
        yAxis: {
            type: 'category',
            data: xAxisList
        },
        series: [
            {
                name: '终审',
                type: 'bar',
                itemStyle:{
                    color:'gray' 
                },  
                data: {{ item['zs']['x'] }}
            }
        ]
    };
    // 使用刚指定的配置项和数据显示图表。  
    myChart.setOption(option); 
</script>


<div id="day" class="data"></div>
<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById("day")); 
    var dateStr = "{{ item['kf']['y'] }}";
    var xAxisList = dateStr.split(';');
    dateStr
    option = {
        title: {
            text: '客服',
            subtext: '累计产出'
        },
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        legend: {
            data: ['客服']
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis: {
            type: 'value',
            boundaryGap: [0, 0.01]
        },
        yAxis: {
            type: 'category',
            data: xAxisList
        },
        series: [
            {
                name: '客服',
                type: 'bar',
                itemStyle:{
                    color:'gray' 
                },  
                data: {{ item['kf']['x'] }}
            }
        ]
    };
    // 使用刚指定的配置项和数据显示图表。  
    myChart.setOption(option); 
</script>


{% endblock %}